package com.huayi.datagovernance.dto;

import lombok.Data;

import java.util.List;

/**
 * 数据代理数据格式
 */
@Data
public class DataBrokerDto {
    private String versionname="BASE";
    private List<PowerSystemResource> PowerSystemResources;

    @Data
    public static class PowerSystemResource{
        private String oid;
        private String sbid;
        private String modelid;
        private Geometry geometry;
        private List<PSRAttribute> PSRAttributes;
    }

    @Data
    public static class Geometry{
        private String type;
        private List<Point> Coordinates;
        private String radius;
        private String code;
    }

    @Data
    public static class PSRAttribute{
        private String name;
        private Object value;

        public PSRAttribute(String name, Object value) {
            this.name = name;
            this.value = value;
        }
    }
}
